Application::RemoveDocument

Section: ET++ method description (n)
Updated: automatically Fri Mar 1 10:58:03 1991
Index Return to Main Contents
 

NAME

Application::RemoveDocument - instance method  

TEMPLATE

void RemoveDocument(Document * document)  

SPECIFIERS

public  

DESCRIPTION

RemoveDocument is called by the method Document::Close when the document has been closed successfully. It removes document from the application's list of documents (it calls the method Remove, not RemovePtr, which means the equality test is used to find the document in the collection). The document is then added to the cleanup list of the var gSystem by the method System::AddCleanupObject which will delete the document.  

ARGUMENTS

Document * document

a closed document to be removed and deleted. It must be contained in the
instvar documents.
 

RETURN ARGUMENT

void

 

CATEGORIES

document handling, client interface

 

FILES

implementation:
Application.C

 

KNOWN PROBLEMS

1. The method should be virtual like its counterpart AddDocument.
2. The document is deleted in any case even if it is not contained in the list.


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FILES
KNOWN PROBLEMS

This document was created by man2html, using the manual pages.
Time: 00:40:31 GMT, March 30, 2022